Tweak testo to use more common stdout capture.
authorrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 19 Sep 2013 22:34:42 +0000 (22:34 +0000)
committerrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 19 Sep 2013 22:34:42 +0000 (22:34 +0000)
gpsbabel/testo

index 1f2bcabf1caa0b3fb9982dc349f1c9337124c0bb..1438c79a588611114f446fe230dc770c0e9c2ee5 100755 (executable)
@@ -85,7 +85,7 @@ xmlwfcheck()
     if which ${XMLWF} >& /dev/null; then
       # xmlwf is a bit lame, exit status is always 0
       rm -f ${TMPDIR}/xmlwf.out
-      ${XMLWF} $1 |& tee ${TMPDIR}/xmlwf.out
+      ${XMLWF} $1 2>&1 | tee ${TMPDIR}/xmlwf.out
       if [ -s ${TMPDIR}/xmlwf.out ]; then
         echo "ERROR: xml is not well-formed in $1"
         let errorcount=errorcount+1